package org.jeecg.modules.third.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: sys_third_account
 * @Author: jeecg-boot
 * @Date:   2021-12-29
 * @Version: V1.0
 */
@Data
@TableName("sys_third_account")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_third_account对象", description="sys_third_account")
public class ThirdAccount {

	/**编号*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "编号")
	private String id;
	/**第三方登录id*/
	@Excel(name = "第三方登录id", width = 15)
    @ApiModelProperty(value = "第三方登录id")
	private String sysUserId;
	/**登录来源*/
	@Excel(name = "登录来源", width = 15)
    @ApiModelProperty(value = "登录来源")
	private String thirdType;
	/**头像*/
	@Excel(name = "头像", width = 15)
    @ApiModelProperty(value = "头像")
	private String avatar;
	/**状态(1-正常,2-冻结)*/
	@Excel(name = "状态(1-正常,2-冻结)", width = 15)
    @ApiModelProperty(value = "状态(1-正常,2-冻结)")
	private Integer status;
	/**删除状态(0-正常,1-已删除)*/
	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
	private Integer delFlag;
	/**真实姓名*/
	@Excel(name = "真实姓名", width = 15)
    @ApiModelProperty(value = "真实姓名")
	private String realname;
	/**第三方账号*/
	@Excel(name = "第三方账号", width = 15)
    @ApiModelProperty(value = "第三方账号")
	private String thirdUserUuid;
	/**authorizationCode*/
	@Excel(name = "authorizationCode", width = 15)
    @ApiModelProperty(value = "authorizationCode")
	private String authorizationCode;
	/**createTime*/
	@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private Date createTime;
	/**updateTime*/
	@Excel(name = "updateTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
	private Date updateTime;
	/**baseId*/
	@Excel(name = "baseId", width = 15)
    @ApiModelProperty(value = "baseId")
	private String baseId;


	@TableField(exist = false)
	private  Integer articleCount;
	@TableField(exist = false)
	private  Integer sumRead;
	@TableField(exist = false)
	private  Integer sumLove;
	@TableField(exist = false)
	private  Integer sumReport;


	private String weixinKey;
	private String weixinSecret;
}
